package spring.angularjs.controller;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Handles requests for the application home page.
 */
@Controller
public class HomeController {
	
	public static String page = "index";
	
	/**
	 * Simply selects the home view to render by returning its name.
	 */
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String login() {
		return "detail/login";
	}
	
	@RequestMapping(value = "/loginfailed", method = RequestMethod.GET)
	public String loginFailed() {
		return "detail/login";
	}
	
	@RequestMapping(value = "/indexadmin", method = RequestMethod.GET)
	public String adminpage() {
		return "template/indexadmin";
	}
	
	@RequestMapping(value = "/indexsupport", method = RequestMethod.GET)
	public String supportpage() {
		return "template/indexsupport";
	}
	
	@RequestMapping(value = "/indexuser", method = RequestMethod.GET)
	public String userpage() {
		return "template/indexuser";
	}
}
